package com.mobilepoc.jersey.model;

import javax.xml.bind.annotation.XmlRootElement;


@XmlRootElement
public class Account
{
   private String arrangementId;
   private String customerArrangementName;


   public Account(){
      //Makes ws.rs happy
   }
   
   public Account(String arId,String name) {
      this.arrangementId=arId;
      this.customerArrangementName=name;
   }

   public String getArrangementId() {
      return arrangementId;
   }

   public void setArrangementId(String arrangementId) {
      this.arrangementId = arrangementId;
   }

   public String getCustomerArrangementName() {
      return customerArrangementName;
   }

   public void setCustomerArrangementName(String customerArrangementName) {
      this.customerArrangementName = customerArrangementName;
   }


//	public JSONObject convertToJSONAccount() throws JSONException {
//		JSONObject jsonAccount = new JSONObject();
//		jsonAccount.put("arrangementId", this.arrangementId);
//		jsonAccount
//				.put("customerArrangementName", this.customerArrangementName);
//		jsonAccount.put("closed", this.closed);
//		jsonAccount.put("availableAmount", this.availableAmount);
//		jsonAccount.put("balance", this.balance);
//		jsonAccount.put("credit", this.credit);
//		jsonAccount.put("type", this.type);
//		return jsonAccount;
//	}
}
